<?php

namespace Forms\Comment;

/**
 * 评论列表表单
 */
class ListModel extends \Forms\AbstractListModel {

    /**
     * 表单字段
     * 
     * @var array
     */
    protected $_fields = array(
        'source_id' => array(
            'label'    => '来源编号',
            'name'     => 'source_id',
            'require'  => false,
            "validate" => array(
                array("type" => "string", "min" => "1", "msg" => "来源编号不正确")
            ),
        ),
    );

    /**
     * 构造方法
     * 
     * @param type $data
     */
    public function __construct($data = array()) {
        $this->_fields = array_merge($this->_fields, $this->_commonFields);
        parent::__construct($data);
    }

}
